﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
namespace Server
{
    class User
    {
        public TcpClient m_socket;
        public String m_name;
        public byte[] m_buffer = new byte[1024];
        public User(TcpClient socket, int number = 0)
        {
            m_socket = socket;
            m_name = "UNKNOWN" + number;
        }
        public void SendMsgToClient(string msg)
        {
            // Convert the reply to byte array
            byte[] buffer = System.Text.Encoding.ASCII.GetBytes(msg + "\n\r");
            m_socket.Client.Send(buffer);
        }
    }
}
